package net.chenlin.dp.modules.newBusiness.dao;

import net.chenlin.dp.modules.newBusiness.entity.dto.TrendChartDto;
import net.chenlin.dp.modules.newBusiness.entity.vo.DeviceCountVo;
import net.chenlin.dp.modules.newBusiness.entity.vo.TopologyNodeTreeVo;
import net.chenlin.dp.modules.newBusiness.entity.vo.TrendChartVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: Yansgm
 * @Description:
 * @Date: 2025-04-27 15:43:45
 */
@Mapper
public interface DeviceCountMapper {

    List<DeviceCountVo> getAllDeviceId(Integer districtId);

    TopologyNodeTreeVo getTopologyNodeTreeVo(String deviceNum);

    BigDecimal getDeviceDayCount(@Param("deviceNum") String deviceNum, @Param("time") String time);

    BigDecimal getUsersCount(@Param("deviceAlias") String deviceAlias, @Param("time") String time, @Param("districtId") Integer districtId);

    List<TrendChartVo> getDeviceCountByType(TrendChartDto dto);

    Integer getDistrictId(String deviceNo);
}
